package com.happycat.social.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


/**
 * 成员query dto
 * 
 * @author jsonbin
 * @date 2020-09-10
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
public class SocialVoiceRoomMemberQueryDto {

    @ApiModelProperty(value = "1.黑名单, 2.被禁言名单, 3.管理员, 4.普通成员", required = true)
    @NotNull(message = "成员类型不能为空")
    @Range(min = 1, max = 4, message = "非法成员类型")
    private Integer type;

    @ApiModelProperty(value = "房间id,平台房间id", required = true)
    @NotNull(message = "房间不能为空")
    private Long svrId;

    @ApiModelProperty(value = "额外字段，可由前端自定义")
    private String ext;

}
